﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using System.ComponentModel.DataAnnotations;

namespace TravelingWebApp.Models
{
    public class User : IdentityUser
    {
        [Display(Name = "姓名")]
        [StringLength(20, MinimumLength = 3)]
        public string Name { get; set; }

        [Display(Name = "年龄")]
        [Range(12, 100)]
        public int Age { get; set; }
        
        public bool IsBlock { get; set; }
        
    }
}
